package com.xms.schema.core;

/**
 * <p>
 * 关系类型
 * </p>
 *
 * @author migo
 * @since 2021/9/1
 */
public enum RelationShipType {
    /*public static final int OneToOne = 0;
    public static final int OneToMany = 1;
    public static final int ManyToOne = 2;
    public static final int ManyToMany = 3;*/
    OneToOne(0, "onetoone"),
    OneToMany(1, "onetomany"),
    ManyToOne(2, "manytoone"),
    ManyToMany(3, "manytomany");

    RelationShipType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
